<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>

<?php 	
	echo html::Stylesheet(
		array
		(
			'media/css/confirm_paid_block.css',
		),
		array
		(
			'screen',
		)
	);	
?>

	<script type="text/javascript">
		$(document).ready(function() {
			$("input[id='close_confirm_paid_popup']").click(function() {
				var uri = ISS.lang.getBasePath()+'index.php';
				window.location = uri;
			});
		}); 
	</script>
	
	<script type="text/javascript">
		dojo.require("dijit.form.ValidationTextBox");
		dojo.require("dojox.validate.regexp");
		dojo.require("dojo.parser");
	</script>
	
<div id="confirm_paidContainer">
    <div id="confirm_paidBlock">
        <div id="confirm_paidBlockTop">
          <h3>แจ้งหลักฐานชำระเงิน</h3>
          <p>กรุณาระบุข้อมูลให้ครบถ้วน</p>
        </div>
        <div id="confirm_paidBlockBody">
        	<?php print form::open_multipart('member/login/confirm_paid');?>
				<table>
					<tr>
						<td>ชื่อ</td>
						<td>
							<input id="confirm_paid_username" type="text" name="txtConfirmPaidUsername" 
							    dojoType="dijit.form.ValidationTextBox"
							    value="<?php echo html::specialchars($form['txtConfirmPaidUsername']); ?>"
							    style="width: 150px;" 
							    trim="true"
							    required="true"
							    invalidMessage="กรุณาระบุชื่อแจ้งชำระเงิน" />
						</td>
						<td>
							<div id='errConfirmPaidUsername' class='confirm_paidBlockError'>
								<?php echo (empty ($errors['txtConfirmPaidUsername'])) ? '' : $errors['txtConfirmPaidUsername']; ?>
							</div>
						</td>
					</tr>
					<tr>
						<td>หมายเลขอ้างอิง</td>
						<td>
							<input id="confirm_paid_reference_id" type="text" name="txtConfirmPaidReferenceId" 
							    dojoType="dijit.form.ValidationTextBox"
							    value="<?php echo html::specialchars($form['txtConfirmPaidReferenceId']); ?>"
							    style="width: 150px;" 
							    trim="true"
							    required="true"
							    invalidMessage="กรุณาระบุหมายเลขอ้างอิงการชำระเงิน" />
						</td>
						<td>
							<div id='errConfirmPaidReferenceId' class='confirm_paidBlockError'>
								<?php echo (empty ($errors['txtConfirmPaidReferenceId'])) ? '' : $errors['txtConfirmPaidReferenceId']; ?>
							</div>
						</td>
					</tr>
					<tr>
						<td>รูปหลักฐานการชำระเงิน::</td>
						<td>
							<?php 
								$attributes = array('name' => 'txtConfirmPaidEvidentPicture');
								echo form::upload($attributes, '');	
							?>
							<div id='errConfirmPaidEvidentPicture' class='confirm_paidBlockError'>
								<?php echo (empty ($errors['txtConfirmPaidEvidentPicture'])) ? '' : $errors['txtConfirmPaidEvidentPicture']; ?>
							</div>
						</td>
					</tr>
					<tr>
						<td>
						</td>
						<td>
							<?php print form::submit('btnSave', 'บันทึก');?>
							<input type="button" id="close_confirm_paid_popup" value="ปิด">
						</td>
						<td></td>
					</tr>
					<tr>
						<td colspan="3">
							<div id="confirm_paid_message" class="confirm_paidBlockError"><?php echo (empty ($errors['save_result'])) ? 'กดปุ่มยืนยันเพื่อแจ้งชำระเงิน' : $errors['save_result']; ?></div>
						</td>
					</tr>
				</table>
			</form>
        </div>
     </div>
     <div id="confirm_paidBlockBot">
     </div>
 </div>
 

 

